<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" type="image/ico" href="{{asset('/favicon.ico')}}">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{$title}}</title>
    <!-- <link rel="stylesheet" type="text/css" href="css/normalize.css" /> -->
    <link rel="stylesheet" type="text/css" href="{{asset('assets/css/default.css')}}">
    <link rel="stylesheet" href="{{asset('assets/css/materialize.min.css')}}">
    <style type="text/css">
        html,
        body {
            height: 100%;
        }
        html {
            display: table;
            margin: auto;
        }
        body {
            display: table-cell;
            vertical-align: middle;
        }

        .margin {
            margin: 0 !important;
        }
    </style>
    {{--<link rel="stylesheet" href="{{asset('assets/css/loader.css')}}">--}}
    <!--[if IE]>
    <script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
    <![endif]-->
    <script src="{{asset('assets/js/jquery-2.0.3.min.js')}}"></script>
    <script type="text/javascript" src="{{asset('assets/layer/layer.js')}}"></script>
    {{--<script>
        // 等待所有加载
        $(window).load(function(){
            $('body').addClass('loaded');
            $('#loader-wrapper .load_title').remove();
        });
    </script>--}}

    <script type="text/javascript" src="{{asset('assets/js/jquery.lazyload.js')}}"></script>
    <script type="text/javascript">
        // 声明变量名 var;
        var Img = "{{asset('assets/images/lazyload.gif')}}";
        $(function(){$("img").lazyload({placeholder:Img,effect:"fadeIn"});});
    </script>
</head>
{{--<div id="loader-wrapper">
    <div id="loader"></div>
    <div class="loader-section section-left"></div>
    <div class="loader-section section-right"></div>
    <div class="load_title">请稍等哦(๑•̀ㅂ•́)و✧</div>
</div>--}}
@yield('body')

        <!--materialize js-->
<script src="{{asset('assets/js/materialize.min.js')}}"></script>
<script type="text/javascript">
    function plusReady(){
        plus.key.addEventListener("backbutton",function(){
            history.back(-1);
        });
    }
    if(window.plus){
        plusReady();
    }else{
        document.addEventListener("plusready",plusReady,false);
    }
</script>
</body>
</html>